package com.zxc.project.config;

import com.baomidou.mybatisplus.extension.plugins.PaginationInterceptor;
import lombok.Data;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
* @author zxc_user
* @date 2021/3/4 23:22
* @version 1.0
* @description 数据配置
**/
@Configuration
public class DataConfig {

    @Bean
    public PaginationInterceptor paginationInterceptor() {
        PaginationInterceptor page = new PaginationInterceptor();
        page.setDialectType("mysql");
        return page;
    }
}
